{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { FormItemInputContext } from '../form/context';\nimport useStyle from './style';\nvar Group = function Group(props) {\n  var _classNames;\n  var _useContext = useContext(ConfigContext),\n    getPrefixCls = _useContext.getPrefixCls,\n    direction = _useContext.direction;\n  var customizePrefixCls = props.prefixCls,\n    _props$className = props.className,\n    className = _props$className === void 0 ? '' : _props$className;\n  var prefixCls = getPrefixCls('input-group', customizePrefixCls);\n  var inputPrefixCls = getPrefixCls('input');\n  var _useStyle = useStyle(inputPrefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  var cls = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-lg\"), props.size === 'large'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-sm\"), props.size === 'small'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-compact\"), props.compact), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames), hashId, className);\n  var formItemContext = useContext(FormItemInputContext);\n  var groupFormItemContext = useMemo(function () {\n    return Object.assign(Object.assign({}, formItemContext), {\n      isFormItemInput: false\n    });\n  }, [formItemContext]);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"span\", {\n    className: cls,\n    style: props.style,\n    onMouseEnter: props.onMouseEnter,\n    onMouseLeave: props.onMouseLeave,\n    onFocus: props.onFocus,\n    onBlur: props.onBlur\n  }, /*#__PURE__*/React.createElement(FormItemInputContext.Provider, {\n    value: groupFormItemContext\n  }, props.children)));\n};\nexport default Group;","map":{"version":3,"names":["classNames","React","useContext","useMemo","ConfigContext","FormItemInputContext","useStyle","Group","props","getPrefixCls","direction","customizePrefixCls","prefixCls","className","inputPrefixCls","wrapSSR","hashId","cls","size","compact","formItemContext","groupFormItemContext","Object","assign","isFormItemInput","createElement","style","onMouseEnter","onMouseLeave","onFocus","onBlur","Provider","value","children"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/input/Group.js"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { FormItemInputContext } from '../form/context';\nimport useStyle from './style';\nconst Group = props => {\n  const {\n    getPrefixCls,\n    direction\n  } = useContext(ConfigContext);\n  const {\n    prefixCls: customizePrefixCls,\n    className = ''\n  } = props;\n  const prefixCls = getPrefixCls('input-group', customizePrefixCls);\n  const inputPrefixCls = getPrefixCls('input');\n  const [wrapSSR, hashId] = useStyle(inputPrefixCls);\n  const cls = classNames(prefixCls, {\n    [`${prefixCls}-lg`]: props.size === 'large',\n    [`${prefixCls}-sm`]: props.size === 'small',\n    [`${prefixCls}-compact`]: props.compact,\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, hashId, className);\n  const formItemContext = useContext(FormItemInputContext);\n  const groupFormItemContext = useMemo(() => Object.assign(Object.assign({}, formItemContext), {\n    isFormItemInput: false\n  }), [formItemContext]);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"span\", {\n    className: cls,\n    style: props.style,\n    onMouseEnter: props.onMouseEnter,\n    onMouseLeave: props.onMouseLeave,\n    onFocus: props.onFocus,\n    onBlur: props.onBlur\n  }, /*#__PURE__*/React.createElement(FormItemInputContext.Provider, {\n    value: groupFormItemContext\n  }, props.children)));\n};\nexport default Group;"],"mappings":";;AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAC3C,SAASC,aAAa,QAAQ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